package com.ruoyi.web.controller.base;

import com.ruoyi.base.domain.BaseCate;
import com.ruoyi.base.service.BaseCateService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

// 类别控制器
@RestController
public class BaseCateController extends BaseController {

    @Autowired
    private BaseCateService baseCateService;

    @PostMapping("/base/cate/list")
    public AjaxResult cateList() {
        List<BaseCate> data = baseCateService.findCateList();
        return success(data);
    }


    @PostMapping("/base/cate/info")
    public AjaxResult info() {
        return success("base cate info");
    }

}
